package com.xbongbong.sys.domain.dao;

import com.xbongbong.sys.domain.entity.TargetLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Description:
 *
 * @author 李杰
 * @version v1.0
 * @date 2019/2/19 15:42
 * @since v1.0
 */
@Repository
@Mapper
public interface TargetLogDao {

    Integer insert(TargetLogEntity targetLog);

    Integer update(TargetLogEntity targetLog);

    Integer deleteByKey(@Param("key") Integer key, @Param("corpid") String corpid);

    TargetLogEntity getByKey(@Param("key") Integer key, @Param("corpid") String corpid);

    List<TargetLogEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}